@import url(./base.less);

// logo
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1;
    .logobox {
        width: 100%;
        height: 45px;
        background-color: #fff;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 12px 0 18px;
        .mylogo {
            font-size: 28px;
            color: #40c5f1;
            flex: 1;
        }
        .right {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex: 1;
            i {
                font-size: 22px;
                color: #ccc;
            }
            img {
                width: 24px;
            }
            button {
                width: 72px;
                height: 24px;
                color: #fff;
                background-color: #40c5f1;
                border: 0;
                border-radius: 5px;
                text-align: center;
                line-height: 24px;
                font-size: 14px;
            }
        }
    }
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 40px;
        border-bottom: 1px solid #eee;
        // background-color: skyblue;
        .menu {
            // 设置容器宽度，实现两端对齐
            flex: 1;
            // 设置子元素两端对齐
            display: flex;
            justify-content: space-around;
            align-items: center;
            li {
                height: 40px;
                padding: 10px 0;
                a {
                    color: #333;
                    font-size: 14px;
                }
                &:hover {
                    border-bottom: 2px solid #40c5f1;
                    // transform: translateY(5px);
                    a {
                        color: #40c5f1;
                    }
                }
            }
        }
        .general_pulldown_s {
            width: 40px;
            height: 40px;
            font-size: 22px;
            color: #ccc;
            text-align: center;
            line-height: 40px;
        }
    }
}

// 视频列表
main {
    margin-top: 85px;
    ul {
        display: flex;
        // 折行显示
        flex-wrap: wrap;
        li {
            width: 50%;
            padding: 8px 5px;
            .pic {
                position: relative;
                .number {
                    position: absolute;
                    left: 0;
                    bottom: 0;
                    width: 100%;
                    display: flex;
                    justify-content: space-between;
                    padding: 8px;
                    color: #fff;
                    font-size: 16px;
                    background-image: linear-gradient(to bottom,transparent,rgba(0,0,0,0.5));
                    p {
                        i {
                            font-size: 16px;
                        }
                    }
                }
            }
            .txt-2 {
                margin-top: 6px;
                font-size: 12px;
                color: #333;
                line-height: 1.5;
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
            }
        }
    }
}

// 底部按钮
.btn {
    position: fixed;
    left: 0;
    bottom: 20px;
    width: 95%;
    height: 36px;
    border: none;
    border-radius: 20px;
    margin-left: 2.5%;
    background-color: #40c5f1;
    font-size: 16px;
    color: #fff;
}